home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmHR
- BorderStyle = 1 'Fixed Single
- Caption = "Horizontal Rule Options"
- ClientHeight = 3735
- ClientLeft = 1860
- ClientTop = 1995
- ClientWidth = 2430
- ClipControls = 0 'False
- ControlBox = 0 'False
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3735
- ScaleWidth = 2430
- Begin VB.CommandButton cmdCancel
- Caption = "Cancel"
- Height = 495
- Left = 1200
- TabIndex = 10
- Top = 3120
- Width = 855
- End
- Begin VB.CommandButton cmdDone
- Caption = "Finished"
- Height = 495
- Left = 240
- TabIndex = 9
- Top = 3120
- Width = 855
- End
- Begin VB.TextBox Text2
- Height = 285
- Left = 1560
- TabIndex = 7
- Text = "70%"
- Top = 2640
- Width = 615
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 1560
- TabIndex = 5
- Text = "3"
- Top = 2160
- Width = 615
- End
- Begin VB.CheckBox chkShade
- Caption = "Shading ON"
- Height = 255
- Left = 360
- TabIndex = 4
- Top = 1680
- Value = 1 'Checked
- Width = 1215
- End
- Begin VB.Frame fraAlign
- Caption = "Alignment"
- Height = 1335
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 2175
- Begin VB.OptionButton Option1
- Caption = "Right"
- Height = 255
- Index = 2
- Left = 240
- TabIndex = 3
- Top = 840
- Width = 855
- End
- Begin VB.OptionButton Option1
- Caption = "Center"
- Height = 255
- Index = 1
- Left = 240
- TabIndex = 2
- Top = 600
- Value = -1 'True
- Width = 855
- End
- Begin VB.OptionButton Option1
- Caption = "Left"
- Height = 255
- Index = 0
- Left = 240
- TabIndex = 1
- Top = 360
- Width = 735
- End
- End
- Begin VB.Label Label1
- Caption = "Width (Pixels/%):"
- Height = 255
- Index = 1
- Left = 240
- TabIndex = 8
- Top = 2640
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "Height:"
- Height = 255
- Index = 0
- Left = 240
- TabIndex = 6
- Top = 2160
- Width = 615
- End
- Attribute VB_Name = "frmHR"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdCancel_Click()
- frmHTMLEditor.Show
- frmHR.Hide
- End Sub
- Private Sub cmdDone_Click()
- frmHTMLEditor.Show
- frmHR.Hide
- Dim Temp$
- Temp$ = "<HR"
- If Option1(0).Value = True Then Temp$ = Temp$ & " ALIGN=LEFT "
- If Option1(1).Value = True Then Temp$ = Temp$ & " ALIGN=CENTER "
- If Option1(2).Value = True Then Temp$ = Temp$ & " ALIGN=RIGHT "
- If chkShade.Value = 0 Then Temp$ = Temp$ & " NOSHADE "
- Temp$ = Temp$ & "SIZE=" & Trim$(Text1.Text) & " "
- Temp$ = Temp$ & "WIDTH=" & Trim$(Text2.Text) & " "
- Temp$ = Temp$ & "<BR>"
- frmHTMLEditor.rtbHTML.SelLength = 0
- frmHTMLEditor.rtbHTML.SelRTF = Temp$ & vbCrLf
- End Sub
-